package com.powernode.enums;
/**
* 商品上架状态的枚举类
*/
public enum ProductStatus {
    //设置枚举类对象包含状态码和状态信息，便于获取
    OFF(0,"未上架"),ON(1,"上架");

     Integer code;
     String message;

     //获取状态码
    public Integer getCode() {
        return code;
    }
    //获取状态信息
    public String getMessage() {
        return message;
    }

    ProductStatus(Integer code, String message){
        this.code = code;
        this.message = message;
    }
}
